package ws

type Event interface {
	Session() ISession
	Message() interface{}
}

type IMessageTransmitter interface {
	OnRecvMessage(ses ISession) (msg interface{}, err error)
	OnSendMessage(ses ISession, msg interface{}) error
}

type IMessageReceive interface {
	Receive(Event)
}
